package com.wsx.first.c;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @author: wangshunxi
 * @date: 2022/5/10 16:22
 * @Description:
 */
public class Main0004 {
    public static void main(String[] args) {
        try (Scanner scanner = new Scanner(System.in)) {
            String content = scanner.nextLine();
            solution(content);
        }
    }

    private static void solution(String content) {
        int len = 8;
        char[] chars = content.toCharArray();

        int length = chars.length;
        int mul = length / 8;
        int remain = length % 8;
        int begin = 0;
        for (int i = 0; i < mul; i++) {
            System.out.println(new String(Arrays.copyOfRange(chars, begin, begin + 8)));
            begin += 8;
        }
        if (remain > 0) {
            System.out.print(new String(Arrays.copyOfRange(chars, begin, length)));
            for (int i = 0; i < 8 - remain; i++) {
                System.out.print("0");
            }
            System.out.println();
        }


    }
}
